/*清除内外边距*/
// * {
//     box-sizing:border-box;
// 	margin: 0;
//     padding: 0;
// }
html,body {
    font: 12px "Helvetica Neue",Helvetica,Arial,"Microsoft Yahei","Hiragino Sans GB","Heiti SC","WenQuanYi Micro Hei",sans-serif;
    color: #333;
    box-sizing:border-box;
    margin: 0;
    padding: 0;
    // width: 100%;
    // height: 100%;
    // min-width: 1200px;
}
// #app{
// 	min-height: 100vh;
//     width: 100%;
//     position: relative;
//     box-sizing: border-box;
//     padding-left: 200px;
//     background-color: #ecf0f5;
//     min-width: 980px;
// }
// .el-popover {
//     position: absolute;
//     background: #fff;
//     min-width: 150px;
//     border-radius: 2px;
//     border: 1px solid #d1dbe5;
//     padding: 10px;
//     z-index: 2000;
//     font-size: 12px;
//     box-shadow: 0 2px 4px 0 rgba(0,0,0,.12), 0 0 6px 0 rgba(0,0,0,.04);
// }
ul,ol,li{
    list-style: none;
    margin-bottom: 0;
}
ul,p,.h1, .h2, .h3, h1, h2, h3, h4, h5{
    margin: 0px;
    padding: 0px;
    font-weight: normal;
}
em,i{
    font-style:normal
}
a{
    color: #000;
}
a:focus
a:hover,
a:active,
a:link{
    text-decoration: none;
    outline: none;
    color:inherit;
}
/*清除浮动*/
.clearfix:before,.clearfix:after { 
  content:"";
  display:table;  /* 这句话可以出发BFC BFC可以清除浮动,BFC我们后面讲 */
}
.clearfix:after {
 clear:both;
}
.clearfix {
  *zoom:1;
}



.editPage{
    position: relative;
    z-index: 999;
    display: flex;
    font-size: 16px;
    line-height: normal;
    box-sizing: content-box;
    overflow-x: auto;
    margin-bottom: 90px;
    padding-bottom: 20px;
    .edit-tool{
        box-sizing: border-box;
        padding-right: 20px;
        flex: 1;
        background-color: #f3efef;
        .tools{
            padding: 30px 0px;
            h3{
                font-size: 12px;
                color: #bfbfbf;
                width: 100%;
                line-height: 36px;
                text-align: center;
                margin-top: 20px;
            }
            .design-tool{
                color: #333;
                text-align: center;
                padding-top: 18px;
                position: relative;
                cursor: pointer;
                .design-tool-tip{
                    display: inline-block;
                    &.is-selected{
                        color: #b2945e;
                    }
                }
                &.is-disabled{
                    color: #bfbfbf;
                    cursor: not-allowed;
                    .is-selected{
                        color: rgba(178,148,94,.6);
                    }
                }
            }
        }
    }
    .edit-main{
        flex: 10;
        background: #fff;
        box-sizing: border-box;
        padding: 30px 34px;
        .design-box{
            position: relative;
            margin-bottom: 363px;
            min-height: 667px;
            width: 375px;
            border: 1px solid #e5e9f2;
            box-sizing: content-box;
            cursor: default;
            .design-item{
                position: relative;
                // border: 1px dashed #fff;
                // &.heightLight{
                //     border: 1px dashed #b2945e;
                // }
                .isDesignBackgroundEdit{
                    position: absolute;
                    top: 0px;
                    left: -20px;
                    width: 20px;
                    font-size: 14px;
                    text-align: center;
                    background: #d3dbdd;
                    color: #fff;
                    height: 106px;
                    border-radius: 2px;
                    i{
                        font-size: 18px;
                        margin-top: 4px;
                    }
                }
            }
            
        }
    }
}









.design-header{
    width: 100%;
    height: 64px;
    box-sizing: border-box!important;
    padding: 24px 60px 0 80px;
    background: url("../images/designBg.png") no-repeat top;
    background-size: 100%;
}
.design-title{
    line-height: 40px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: #fff;
    text-align: center;
}
.design-edit{
    position: absolute;
    top: 16px;
    left: 100%;
    z-index: 1010;
    margin-left: 16px;
    box-sizing: border-box;
    width: 439px;
    border-radius: 4px;
    background: #f2f4f8;
    text-align: left;
    padding: 15px 14px;
    margin-top: -16px;
}
.design-edit::before{
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 2px;
    background-color: #f2f4f8;
    top: 30px;
    left: -6px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    z-index: -1;
}
.edit-title{
    font-size: 14px;
    font-weight: 700;
    line-height: 34px;
}
.imgset{
    p{
        font-size: 12px;
        color: #666;
        margin: 20px 0;
    }
    .imgsetList{
        li{
            width: 100px;
            height: 104px;
            float: left;
            background-color: #fff;
            border: 1px solid #e4e4e4;
            margin-bottom: 15px;
            margin-right: 14px;
            line-height: 1;
            box-sizing: border-box!important;
            padding: 6px 0 0 0;
            cursor: pointer;
            text-align: center;
            &.is-selected{
                border-color: #b2945e;
            }
            i{
                display: block;
                margin: 0 auto;
                width: 89px;
                height: 70px;
                background-repeat: no-repeat;
                background-size: cover;
                overflow: hidden;
                &.logo1{
                    background-image: url("../images/img_logo1.jpg");
                }
                &.logo2{
                    background-image: url("../images/img_logo2.jpg");
                }
                &.logo3{
                    background-image: url("../images/img_logo3.jpg");
                }
                &.logo4{
                    background-image: url("../images/img_logo4.jpg");
                }
                &.logo5{
                    background-image: url("../images/img_logo5.jpg");
                }
                &.logo6{
                    background-image: url("../images/img_logo6.jpg");
                }
                &.logo7{
                    background-image: url("../images/img_logo7.jpg");
                }
                &.logo8{
                    background-image: url("../images/img_logo8.jpg");
                }
                &.logo9{
                    background-image: url("../images/img_logo9.jpg");
                }
                &.logo10{
                    background-image: url("../images/img_logo10.jpg");
                }
                &.logo11{
                    background-image: url("../images/img_logo11.jpg");
                }
            }
            img{
                width: 89px;
                height: 70px;
            }
            div{
                font-size: 12px;
                color: #333;
                line-height: 28px;
            }
        }
    }
}
.design-item-list{
    border: 1px dashed transparent;
}
.design-item-list:hover,
.heightLight{
    border: 1px dashed #b2945e;
}
/* 标题组件 */
.design-title-wrap{
    position: relative;
}
i.icon-btn{
    position: absolute;
    color: #ccc;
    font-size: 26px;
    z-index: 999;
    display: none;
}
.icon-top{
    top: -16px;
    left: calc(50% - 16px);
}
.icon-bottom{
    bottom: -16px;
    left: calc(50% - 16px);
}
.icon-right{
    right: -10px;
}
.design-item:hover i.icon-btn{
    display: block;
}
.isDesignBackground .design-item:hover i.icon-btn.el-icon-error{
    display: none;
}
.design-title-h{
    line-height: 24px;
    padding: 0 .9375rem;
}
/* 保存按钮 */
.saveWrap{
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 75px;
    -webkit-box-shadow: 0 -3px 8px hsla(0,0%,74.9%,.15);
    box-shadow: 0 -3px 8px hsla(0,0%,74.9%,.15);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 1800;
    left: 0;
    background: #fff;
}
// 商品组件
.designcard{
    padding-left: .9375rem;
    padding-right: .9375rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    .list{
        display:box;
        display:-webkit-box;
        display:-webkit-flex; 
        display:-moz-box; 
        display:-ms-flexbox; 
        display:flex;
        -webkit-flex-wrap: wrap;
        -moz-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        -o-flex-wrap: wrap;
        flex-wrap:wrap;
        -webkit-justify-content: space-between;
        -moz-justify-content: space-between;
        -ms-justify-content: space-between;
        -o-justify-content: space-between;
        justify-content: space-between;
        background-color: #fff;
        box-shadow: 0 0.09375em 0.65625em 0 hsla(0,0%,40%,.15);
        &:not(:first-child){
            margin-top: .9375rem;
        }
        .product-img{
            width: 145px;
            height: 145px;
            background-image: url("../images/goodlistcard.jpg");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 100%;
        }
        .product-info{
            position: relative;
            width: 199px;
            &::before {
                content: "";
                position: absolute;
                top: 0;
                left: -9px;
                width: 64px;
                height: 100%;
                -webkit-transform-origin: top right;
                transform-origin: top right;
                -webkit-transform: skew(-23deg, 0deg);
                transform: skew(-23deg, 0deg);
                z-index: 0;
                background-color: #fff;
            }
            .product-info-box{
                position: relative;
                h3{
                    text-overflow: ellipsis;
                    overflow: hidden;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    word-wrap: break-word;
                    font-size: 18px;
                    color: #333;
                    height: 60px;
                    line-height: 1.625;
                    padding: .375em 0.625rem 0 0.5rem;
                }
                .product-price{
                    .discount{
                        font-size: 18px;
                        color: #b2945e;
                    }
                    .price{
                        font-size: 12px;
                        color: #bfbfbf;
                        text-decoration:line-through;
                    }
                }
            }
            .product-buy{
                margin-top: 10px;
                text-align: right;
                span{
                    display: inline-block;
                    // float: right;
                    width: 76px;
                    height: 30px;
                    line-height: 30px;
                    font-size: 14px;
                    color: #b2945e;
                    margin-right: 0.625rem;
                    text-align: center;
                    border: 1px solid #b2945e;
                }
            }
        }
        &:nth-child(2n){
            .product-img{
                background-image: url("../images/goodlistcard2.jpg");
                background-repeat: no-repeat;
                background-position: center;
                background-size: 100%;
            }
        }
    }
    
}
.designbig{
    .list{
        background-color: #fff;
        .product-img{
            width: 100%;
            height: 200px;
            background-image: url("../images/goodlistcard.jpg");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 100%;
        }
        .product-info{
            position: relative;
            display:box;
            display:-webkit-box;
            display:-webkit-flex; 
            display:-moz-box; 
            display:-ms-flexbox; 
            display:flex;
            -webkit-flex-wrap: wrap;
            -moz-flex-wrap: wrap;
            -ms-flex-wrap: wrap;
            -o-flex-wrap: wrap;
            flex-wrap:wrap;
            -webkit-justify-content: space-between;
            -moz-justify-content: space-between;
            -ms-justify-content: space-between;
            -o-justify-content: space-between;
            justify-content: space-between;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            -o-align-items: center;
            align-items: center;
            width: 100%;
            height: 95px;
            padding: 0 4%;
            box-sizing: border-box;
            .product-info-box{
                max-width: 240px;
                h3{
                    text-overflow: ellipsis;
                    overflow: hidden;
                    display: -webkit-box;
                    -webkit-line-clamp: 1;
                    -webkit-box-orient: vertical;
                    word-wrap: break-word;
                    font-size: 18px;
                    color: #333;
                    line-height: 1.625;
                    // padding: .375em 0.625rem 0 0.5rem;
                }
                .product-price{
                    .discount{
                        font-size: 18px;
                        color: #b2945e;
                    }
                    .price{
                        font-size: 12px;
                        color: #bfbfbf;
                        text-decoration:line-through;
                    }
                }
            }
            .product-buy{
                margin-top: -10px;
                span{
                    display: block;
                    float: right;
                    width: 76px;
                    height: 30px;
                    line-height: 30px;
                    font-size: 14px;
                    color: #fff;
                    text-align: center;
                    border: 1px solid #b2945e;
                    background-color: #b2945e;
                }
            }
        }
    }
}
.designdouble{
    display:box;
    display:-webkit-box;
    display:-webkit-flex; 
    display:-moz-box; 
    display:-ms-flexbox; 
    display:flex;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap:wrap;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -ms-justify-content: space-between;
    -o-justify-content: space-between;
    justify-content: space-between;
    padding: 0 .625rem;
    .list{
        width: 50%;
        padding: 0 .3125rem;
        background-color: #fff;
        box-sizing: border-box;
        .product-img{
            width: 100%;
            height: 171.5px;
            background-image: url("../images/goodlistcard.jpg");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 100%;
        }
        .product-info{
            position: relative;
            display:box;
            display:-webkit-box;
            display:-webkit-flex; 
            display:-moz-box; 
            display:-ms-flexbox; 
            display:flex;
            -webkit-align-items: center;
            -moz-align-items: center;
            -ms-align-items: center;
            -o-align-items: center;
            align-items: center;
            width: 100%;
            height: 95px;
            padding: 0 4%;
            box-sizing: border-box;
            .product-info-box{
                max-width: 100%;
                h3{
                    text-overflow: ellipsis;
                    overflow: hidden;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    word-wrap: break-word;
                    font-size: 14px;
                    color: #333;
                    line-height: 1.5;
                    height: 42px;
                    // padding: .375em 0.625rem 0 0.5rem;
                }
                .product-price{
                    .discount{
                        font-size: 18px;
                        color: #b2945e;
                    }
                    .price{
                        font-size: 12px;
                        color: #bfbfbf;
                        text-decoration:line-through;
                    }
                }
            }
            .product-buy{
                margin-top: -10px;
                span{
                    display: block;
                    float: right;
                    width: 76px;
                    height: 30px;
                    line-height: 30px;
                    font-size: 14px;
                    color: #fff;
                    text-align: center;
                    border: 1px solid #b2945e;
                    background-color: #b2945e;
                }
            }
        }
        &:nth-child(2n){
            .product-img{
                background-image: url("../images/goodlistcard2.jpg");
                background-repeat: no-repeat;
                background-position: center;
                background-size: 100%;
            }
        }
    }
}
.addgood{
    border-top: 1px dashed #b2945e;
    .addBtn{
        margin: 20px auto;
        text-align: center;
    }
    .addItembox{
        .addItem-tip{
            color: #bfbfbf;
        }
        .addItemTable{
            table{
                font-size: 13px;
                border-collapse:collapse;
                thead {
                    line-height: 41px;
                    background-color: #e5e9f2;
                    font-weight: 700;
                    color: #333;
                    font-size: 14px;
                    border-bottom: 1px solid #e5e9f2;
                    tr th{
                        vertical-align: middle;
                        line-height: 18px;
                        height: 45px;
                        &:first-child{
                            padding: 0 16px;
                        }
                    }
                }
                tbody tr td{
                    vertical-align: middle;
                    border-bottom: 1px solid #e5e9f2;
                    &:first-child{
                        padding: 4px 16px;
                    }
                }
            }
        }
    }
    .addItem-tip{
        font-size: 12px;
        padding: 8px 0;
        color: #d1dbe5;
    }
}
.tbdialog{
    .el-dialog__body{
        padding: 20px;
        .el-input__inner{
            height: 33px;
            line-height: 33px;
        }
    }
    .footerBtn{
        text-align: right;
        margin-top: 20px;
        .el-input__inner{
            height: 33px;
            line-height: 33px;
        }
    }
    .search-row{
        margin-bottom: 10px;
    }
    .pagination{
        margin-top: 20px;
        .selgoodscouts{
            span{
                color: #f7ba2a;
            }
        }
    }
}
// 右侧菜单
.is-bottom{
    top: 100%;
    margin-top: -50px;
}
.design-tools{
    border-bottom: 1px solid #e5e9f2;
    padding-bottom: 20px;
    &:last-child{
        border: none;
    }
    h3{
        font-size: 12px;
        color: #bfbfbf;
        width: 100%;
        line-height: 36px;
    }
    .design-tool{
        display: inline-block;
        width: 20%;
        color: #333;
        text-align: center;
        padding-top: 18px;
        position: relative;
        cursor: pointer;
        .design-tool-count{
            display: inline-block;
            &.is-selected{
                color: #b2945e;
            }
            P{
                font-size: 12px;
                line-height: 26px;
            }
        }
        &.is-disabled{
            color: #bfbfbf;
            cursor: not-allowed;
            .is-selected{
                color: rgba(178,148,94,.6);
                i{
                    cursor: not-allowed!important;
                }
            }
        }
    }
}

// 辅助空白
.design-space{
    height: 0px;
    padding-bottom: 4%;
    overflow: hidden;
}
// 背景
.design-background-box{
    width: 100%;
    .design-background{
        position: relative;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100%;
        &.no-adaptive {
            width: 100%;
            min-height: 100%;
            // position: absolute;
        }
        img{
            display: block;
            width: 100%;
            overflow: hidden;
        }
        &.is-adaptive{
            // position: fixed;
            // height: 100%;
            height: 603px;
            background-size: cover;
            background-position: top;
            background-repeat: no-repeat;
        }
    }
}
.design-background-tooltip{
    p:nth-last-of-type(2) {
        color: #ff605f;
    }
    p {
        line-height: 24px;
        img {
            display: block;
            margin: 30px auto 0;
            vertical-align: middle;
            width: 348px;
        }
    }
}